import React, { Component } from 'react';
import loadable from '../utils/loadable'
import {
    UserOutlined, DownOutlined, AppstoreOutlined, GiftOutlined, FileExcelOutlined,
    DownloadOutlined, DislikeOutlined, EnvironmentOutlined, ExperimentOutlined, DeleteColumnOutlined,
    DatabaseOutlined, CustomerServiceOutlined, CoffeeOutlined, CarryOutOutlined, CameraOutlined,
    BulbOutlined, BranchesOutlined, BellOutlined, BarsOutlined, AudioOutlined, AuditOutlined, BankOutlined

} from '@ant-design/icons';

const UserList = loadable(() => import('../components/user/list.js'))
const UserAdd = loadable(() => import('../components/user/add.js'))
const ManagerList = loadable(() => import('../components/manager/list.js'))
const ManagerAdd = loadable(() => import('../components/manager/add.js'))

const menuNewList = [
    {
        path: "/main",
        name: "main",
        component: "Main",
        meta: {
            requireAuth: true,
            title: "访客管理"
        },
        iconCls: <UserOutlined />,
        hidden: true,
        children: [
            {
                path: "/user/list",
                name: "user_list",
                meta: {
                    title: "客户列表"
                },
                iconCls: <DownOutlined />,
                hidden: true,
                component: UserList
            },
            {
                path: "/user/add",
                name: "user_add",
                meta: {
                    title: "添加客户"
                },
                iconCls: <AppstoreOutlined />,
                hidden: true,
                component: UserAdd
            }
        ]
    },
    {
        path: "/main",
        name: "main",
        component: "Main",
        iconCls: <CarryOutOutlined />,
        meta: {
            requireAuth: true,
            title: "会员管理"
        },
        hidden: true,
        children: [
            {
                path: "/product/list",
                name: "product_list",
                meta: {
                    title: "会员列表"
                },
                iconCls: <AuditOutlined />,
                hidden: true,
                component: ManagerList
            },
            {
                path: "/product/add",
                name: "product_add",
                meta: {
                    title: "添加会员"
                },
                iconCls: <BankOutlined />,
                hidden: true,
                component: ManagerAdd
            }
        ]
    },
    {
        path: "/main",
        name: "main",
        component: "Main",
        iconCls: <BarsOutlined />,
        meta: {
            requireAuth: true,
            title: "日志管理"
        },
        hidden: true,
        children: [
            {
                path: "/log/list",
                name: "log_list",
                meta: {
                    title: "日志列表"
                },
                iconCls: <BellOutlined />,
                hidden: true,
                component: "LogList"
            },
            {
                path: "/log/add",
                name: "log_add",
                meta: {
                    title: "添加日志"
                },
                iconCls: <BranchesOutlined />,
                hidden: true,
                component: "LogAdd"
            }
        ]
    },
    {
        path: "/main",
        name: "main",
        component: "Main",
        iconCls: <BulbOutlined />,
        meta: {
            requireAuth: true,
            title: "操作员管理"
        },
        hidden: true,
        children: [
            {
                path: "/manager/list",
                name: "manager_list",
                meta: {
                    title: "操作员列表"
                },
                iconCls: <CameraOutlined />,
                hidden: true,
                component: "ManagerList"
            }
        ]
    },
    {
        path: "/main",
        name: "main",
        component: "Main",
        iconCls: <AudioOutlined/>,
        meta: {
            requireAuth: true,
            title: "音乐模块"
        },
        hidden: true,
        children: [
            {
                path: "/music/list",
                name: "music_list",
                meta: {
                    title: "音乐列表"
                },
                iconCls: <CoffeeOutlined />,
                hidden: true,
                component: "MusicList"
            },
            {
                path: "/music/add",
                name: "music_add",
                meta: {
                    title: "添加音乐"
                },
                iconCls: <CustomerServiceOutlined />,
                hidden: true,
                component: "MusicAdd"
            }
        ]
    },
    {
        path: "/main",
        name: "main",
        component: "Main",
        iconCls: <DatabaseOutlined />,
        meta: {
            requireAuth: true,
            title: "项目展示"
        },
        hidden: true,
        children: [
            {
                path: "/project/list",
                name: "project_list",
                meta: {
                    title: "项目列表"
                },
                iconCls: <DeleteColumnOutlined />,
                hidden: true,
                component: "ProjectList"
            }
        ]
    },
    {
        path: "/main",
        name: "main",
        component: "Main",
        iconCls: <ExperimentOutlined />,
        meta: {
            requireAuth: true,
            title: "banner管理"
        },
        hidden: true,
        children: [
            {
                path: "/banner/list",
                name: "banner_list",
                meta: {
                    title: "Banner列表"
                },
                iconCls: <EnvironmentOutlined />,
                hidden: true,
                component: "BannerList"
            },
            {
                path: "/banner/add",
                name: "banner_add",
                meta: {
                    title: "Banner添加"
                },
                iconCls: <DislikeOutlined />,
                hidden: true,
                component: "BannerAdd"
            }
        ]
    },
    {
        path: "/main",
        name: "main",
        component: "Main",
        iconCls: <DownloadOutlined />,
        meta: {
            requireAuth: true,
            title: "商品模块"
        },
        hidden: true,
        children: [
            {
                path: "/shop/list",
                name: "shop_list",
                meta: {
                    title: "商品列表"
                },
                iconCls: <FileExcelOutlined />,
                hidden: true,
                component: "ShopList"
            },
            {
                path: "/shop/add",
                name: "shop_add",
                meta: {
                    title: "商品添加"
                },
                iconCls: <GiftOutlined />,
                hidden: true,
                component: "ShopAdd"
            }
        ]
    }
]

export default menuNewList;